package com.goldcn.user.controller;

import com.goldcn.user.service.DataStaticsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by zll on 2017/4/26.
 */
@Api(value = "报表导出")
@RestController
@RequestMapping(value = "/export")
public class DataStaticsController {
    @Autowired
    DataStaticsService dataStaticsService;

    @ApiOperation(value = "到处组织报表")
    @RequestMapping(value = "/organizationalExport",method = RequestMethod.GET)
    public Object getOrgMain(){
        return dataStaticsService.getDepartmentDataByDay();
    }
}
